package org.test.thread;

import java.util.HashMap;

/**
 * Created by Hy on 2018/7/25.
 */
public class WordCount {
    private static final HashMap<String,Integer> counts = new HashMap<String, Integer>();
    private static void countWord(String word){
        Integer currentCount = counts.get(word);
        if(currentCount == null)
            counts.put(word,1);
        else
            counts.put(word,currentCount+1);
    }

    public static void main(String[] args) {
       // Iterable<Page> pages =  new Pages(1000000,"enwiki.xml");
    }
}
